DAS #79: PRIMITIVE OBSESSION
- Type:
- Video > Other
- Files:
- 1
- Size:
- 155.98 MB
- Tag(s):
- destroy all software das destroy all software
- Uploaded:
- Nov 16, 2012
- By:
- splehpneb
Primitive obsession is the use of primitive valuesΓÇöintegers, strings, arrays, hashes, etc.ΓÇöwhen a more specialized, domain-relevant object would provide a better design. Rather than discuss the idea abstractly, this screencast is a concrete example: we examine Destroy All Software's Screencast class, then replace it throughout the system with a simple hash. At the end, we review the changes to get a sense of what primitive obsession does to a design. Note: As mentioned in the screencast, no tests are run or touched. At over 15 minutes long, this screencast is well on the high end of DAS lengths and test maintenance would've increased that. As a result, at least one mistake is made: the Screencast.slug method should've taken a screencast and computed the slug from it. This doesn't impact the design analysis, but certainly reaffirms the importance of testing.
Admin, give this man THE SKULL ....
@splehpneb you've uploaded the best videos ever.
Thanks a lot for your valuable contribution :)
@splehpneb you've uploaded the best videos ever.
Thanks a lot for your valuable contribution :)
@arpit_tpb Thanks man, I'll be posting another 20 or so pretty soon, so keep an eye out.
Please upload Vim related videos if you can :
#30 some vim tips
#60 .vimrc
and may be suck/rocks series if possible :)
thanks :)
#30 some vim tips
#60 .vimrc
and may be suck/rocks series if possible :)
thanks :)
Comments